package org.hospital.entity;
// default package

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * TreatInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="treatinfo"
    ,catalog="hospital"
)

public class TreatInfo  implements java.io.Serializable {


    // Fields    

     private Integer treatInfoId;
     private Integer medicalCardId;
     private Integer clientId;
     private Integer excutorId;
     private Integer departmentId;
     private Integer clinicId;
     private Double unitPrice;
     private Double excutorCost;
     private Double clinicCost;
     private Timestamp treatTime;


    // Constructors

    /** default constructor */
    public TreatInfo() {
    }

    
    /** full constructor */
    public TreatInfo(Integer medicalCardId, Integer clientId, Integer excutorId, Integer departmentId, Integer clinicId, Double unitPrice, Double excutorCost, Double clinicCost, Timestamp treatTime) {
        this.medicalCardId = medicalCardId;
        this.clientId = clientId;
        this.excutorId = excutorId;
        this.departmentId = departmentId;
        this.clinicId = clinicId;
        this.unitPrice = unitPrice;
        this.excutorCost = excutorCost;
        this.clinicCost = clinicCost;
        this.treatTime = treatTime;
    }

   
    // Property accessors
    @Id @GeneratedValue
    
    @Column(name="treatInfoId", unique=true, nullable=false)

    public Integer getTreatInfoId() {
        return this.treatInfoId;
    }
    
    public void setTreatInfoId(Integer treatInfoId) {
        this.treatInfoId = treatInfoId;
    }
    
    @Column(name="medicalCardId", nullable=false)

    public Integer getMedicalCardId() {
        return this.medicalCardId;
    }
    
    public void setMedicalCardId(Integer medicalCardId) {
        this.medicalCardId = medicalCardId;
    }
    
    @Column(name="clientId", nullable=false)

    public Integer getClientId() {
        return this.clientId;
    }
    
    public void setClientId(Integer clientId) {
        this.clientId = clientId;
    }
    
    @Column(name="excutorId", nullable=false)

    public Integer getExcutorId() {
        return this.excutorId;
    }
    
    public void setExcutorId(Integer excutorId) {
        this.excutorId = excutorId;
    }
    
    @Column(name="departmentId", nullable=false)

    public Integer getDepartmentId() {
        return this.departmentId;
    }
    
    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }
    
    @Column(name="clinicId", nullable=false)

    public Integer getClinicId() {
        return this.clinicId;
    }
    
    public void setClinicId(Integer clinicId) {
        this.clinicId = clinicId;
    }
    
    @Column(name="unitPrice", nullable=false, precision=22, scale=0)

    public Double getUnitPrice() {
        return this.unitPrice;
    }
    
    public void setUnitPrice(Double unitPrice) {
        this.unitPrice = unitPrice;
    }
    
    @Column(name="excutorCost", nullable=false, precision=22, scale=0)

    public Double getExcutorCost() {
        return this.excutorCost;
    }
    
    public void setExcutorCost(Double excutorCost) {
        this.excutorCost = excutorCost;
    }
    
    @Column(name="clinicCost", nullable=false, precision=22, scale=0)

    public Double getClinicCost() {
        return this.clinicCost;
    }
    
    public void setClinicCost(Double clinicCost) {
        this.clinicCost = clinicCost;
    }
    
    @Column(name="treatTime", nullable=false, length=19)

    public Timestamp getTreatTime() {
        return this.treatTime;
    }
    
    public void setTreatTime(Timestamp treatTime) {
        this.treatTime = treatTime;
    }
   








}